/**
 * Created by qwr on 2017/6/5.
 */
import ajax from '../../common/fetch'
export default{
  state:{
    factorys:{},
  },
  getters:{
  },
  mutations:{
    queryFactory(state,response){
      state.factorys= response;
    }
  },
  actions:{
    queryFactory(context,param){
      ajax.get('/manage/admin', {
          params: param
        })
        .then(function (response) {
          context.commit("queryFactory",response.data);
        })
        .catch(function (error) {
          console.log(error);
        });
    }
  }
}
